-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(bundler): add --windows-icon, --windows-no-console, fix bun.exe's main icon #15894
Conversation
8116f33
to
a107463
Compare
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not successfully link on Windows.
lld-link: error: codegen\windows-app-info.rc: unknown file type
Does not fix Bun's own icon. But it's better than status quo. |
I love bun ~ |
@paperdave @Jarred-Sumner see resedit-cli and their resedit and pe-library npm packages for a pure JS solution for patching windows executables. I've been already using them for Neutralino, NW.JS and Bun binaries for a long time to edit and sign windows executables in a Linux CI, both in Node.js and Bun.
Plus you can use the |
Here is what I'm doing in my Buntralino — I implemented icon addition and no-console before this PR. |
Missing tests because writing one is very non-trivial.
--windows-icon
is currently gated to windows build hosts (no cross compilation), as the current approach uses a library that calls the Windows API. In the future, we should replace this with a portable version that just manipulates the bytes in-memory.Fixes #10823
Fixes #13084